package com.yl.module.property.domain.dto;


import com.yl.common.domain.base.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 资产表 DTO
 * @author makejava
 * @date 2024-10-23 15:54:15
 */
@Data
@ApiModel(value = "PropertyPageDTO", description = "资产DTO")
public class PropertyPageDTO extends PageDTO implements Serializable {
	private static final long serialVersionUID = -58694481108239716L;

	@ApiModelProperty(value = "资产一级分类id 1家电 2安消 3家具 4构件")
	@NotNull(message = "参数propertyTypeId不能为空")
	@Min(value = 1, message = "参数propertyTypeId 不能为空")
	private Integer propertyTypeId;

	@ApiModelProperty(value = "资产查询选择id 数组 例如[1,2,3] 前端传的时候可以是逗号分隔的字符串 例如1,2,3 不传查询所有")
	private List<Integer> propertyTypeIds;

	@ApiModelProperty(value = "状态 1正常 2离线 3闲置")
    private Integer state;

	@ApiModelProperty(value = "是否绑定bim点位（资产更换时过滤出未绑定bim点位的资产列表）")
	private Boolean bindBim;
}

